home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmStringDrawUnderline.z / XmStringDrawUnderline
Encoding:
Text File  |  2003-11-18  |  5.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwUUUUnnnnddddeeeerrrrlllliiiinnnneeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwUUUUnnnnddddeeeerrrrlllliiiinnnneeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_t_r_i_n_g_D_r_a_w_U_n_d_e_r_l_i_n_e    - A compound string function that
  10.       underlines a string drawn in an X Window
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.  
  15.       void XmStringDrawUnderline (dddd,,,, wwww,,,, ffffoooonnnnttttlllliiiisssstttt,,,, ssssttttrrrriiiinnnngggg,,,, ggggcccc,,,, xxxx,,,, yyyy,,,,    wwwwiiiiddddtttthhhh,,,, aaaalllliiiiggggnnnnmmmmeeeennnntttt,,,, llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn,,,, cccclllliiiipppp,,,, uuuunnnnddddeeeerrrrlllliiiinnnneeee)
  16.            _D_i_s_p_l_a_y     **** dddd;
  17.            _W_i_n_d_o_w     wwww;
  18.            _X_m_F_o_n_t_L_i_s_tffffoooonnnnttttlllliiiisssstttt;
  19.            _X_m_S_t_r_i_n_g     ssssttttrrrriiiinnnngggg;
  20.            _G_C     ggggcccc;
  21.            _P_o_s_i_t_i_o_n     xxxx;
  22.            _P_o_s_i_t_i_o_n     yyyy;
  23.            _D_i_m_e_n_s_i_o_n wwwwiiiiddddtttthhhh;
  24.            _u_n_s_i_g_n_e_d    _c_h_a_raaaalllliiiiggggnnnnmmmmeeeennnntttt;
  25.            _u_n_s_i_g_n_e_d    _c_h_a_rllllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn;
  26.            _X_R_e_c_t_a_n_g_l_e**** cccclllliiiipppp;
  27.            _X_m_S_t_r_i_n_g     uuuunnnnddddeeeerrrrlllliiiinnnneeee;
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.       _X_m_S_t_r_i_n_g_D_r_a_w_U_n_d_e_r_l_i_n_e    draws a    compound string    in an X
  31.       Window.  If the substring identified by uuuunnnnddddeeeerrrrlllliiiinnnneeee can    be
  32.       matched in ssssttttrrrriiiinnnngggg, the substring will    be underlined.    Once a
  33.       match    has occurred, no further matches or underlining    will
  34.       be done.
  35.  
  36.       If a compound    string segment uses a font list    entry that
  37.       defines a font set, the graphic context passed to this
  38.       routine will have the    GC font    member left in an undefined
  39.       state.  The underlying _X_m_b_S_t_r_i_n_g_D_r_a_w function    called by this
  40.       routine modifies the font id field of    the GC passed into it
  41.       and does not attempt to restore the font id to the incoming
  42.       value.  If the compound string segment is not    drawn using a
  43.       font set, the    graphic    context    must contain a valid font
  44.       member.  Graphic contexts created by _X_t_G_e_t_G_C are not
  45.       accepted by this routine; instead, use _X_t_A_l_l_o_c_a_t_e_G_C to
  46.       create a graphic context.
  47.  
  48.       dddd    Specifies the display.
  49.  
  50.       wwww    Specifies the window.
  51.  
  52.       ffffoooonnnnttttlllliiiisssstttt
  53.            Specifies the font list.
  54.  
  55.       ssssttttrrrriiiinnnngggg
  56.            Specifies the string.
  57.  
  58.       ggggcccc   Specifies the graphics context to use.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwUUUUnnnnddddeeeerrrrlllliiiinnnneeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwUUUUnnnnddddeeeerrrrlllliiiinnnneeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.       xxxx    Specifies a coordinate of the rectangle that will
  75.            contain the displayed compound string.
  76.  
  77.       yyyy    Specifies a coordinate of the rectangle that will
  78.            contain the displayed compound string.
  79.  
  80.       wwwwiiiiddddtttthhhh
  81.            Specifies the width of the rectangle that will contain
  82.            the displayed compound string.
  83.  
  84.       aaaalllliiiiggggnnnnmmmmeeeennnntttt
  85.            Specifies how the string    will be    aligned    within the
  86.            specified rectangle.  It    is one of
  87.            _X_m_A_L_I_G_N_M_E_N_T__B_E_G_I_N_N_I_N_G, _X_m_A_L_I_G_N_M_E_N_T__C_E_N_T_E_R, or
  88.            _X_m_A_L_I_G_N_M_E_N_T__E_N_D.
  89.  
  90.       llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn
  91.            Controls    the direction in which the segments of the
  92.            compound    string will be laid out.  It also determines
  93.            the meaning of the aaaalllliiiiggggnnnnmmmmeeeennnntttt parameter.
  94.  
  95.       cccclllliiiipppp Allows the application to restrict the area into    which
  96.            the compound string will    be drawn.  If NULL, no
  97.            clipping    will be    done.
  98.  
  99.       uuuunnnnddddeeeerrrrlllliiiinnnneeee
  100.            Specifies the substring to be underlined.
  101.  
  102.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  103.       _X_m_S_t_r_i_n_g_C_r_e_a_t_e(_3_X).
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.